package com.chhuang.system.service;

import java.util.List;

import com.chhuang.core.service.IBaseService;
import com.chhuang.system.mapper.ChMenuMapper;
import com.chhuang.system.po.ChMenu;

/**
* ChMenu IService
* @author ChHuang
* @date Fri Mar 03 13:08:17 CST 2017
*/
public interface IChMenuService extends IBaseService<ChMenuMapper, ChMenu> {
	/**
	 * 查找所有一级菜单 
	 * @return
	 * @throws Exception
	 */
	public List<ChMenu> findAsParent() throws Exception;
	
	/**
	 * 根据父菜单编号删除所有子菜单
	 * @param menuIds
	 * @return
	 * @throws Exception
	 */
	public int deleteByParentIdArray(String[] menuIds) throws Exception;
	
	/**
	 * 根据菜单编号删除菜单
	 * @param menuIds
	 * @throws Exception
	 */
	public int deleteByMenuIdArray(String[] menuIds) throws Exception;
}